package com.itheima.service.impl;

import com.itheima.domain.Trip;
import com.itheima.mapper.NewTripMapper;
import com.itheima.mapper.TripMapper;
import com.itheima.service.NewTripService;
import com.sun.org.apache.bcel.internal.generic.NEW;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class NewTripServiceImpl implements NewTripService {
    //从IOC容器中获取对象
    @Autowired
    private NewTripMapper newTripMapper;

    public List<Trip> queryTripAll() {
        return newTripMapper.queryTripAll();
    }

}
